package bai.myworld.pojo.entity.shop;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ShippingAddress {
    private Long id;

    private Long userId;          // 用户ID
    private String receiverName;  // 收货人姓名
    private String receiverPhone; // 收货人电话

    private String province;      // 省

    private String city;          // 市

    private String district;      // 区

    private String detailedAddress; // 详细地址

    private Boolean isDefault;    // 是否默认地址

    private Date createTime;

    private Date updateTime;

    // 移除了JPA的@ManyToOne关联
}
